//
//  News.h
//  SimulationTechnologyHeadlines
//
//  Created by 移云 on 2019/10/17.
//  Copyright © 2019 admin. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface News : NSObject

@property(nonatomic,copy)NSString *title; //文章标题
@property(nonatomic,copy)NSString *content; //文章摘要
@property(nonatomic,copy)NSString *url; //文章URL
@property(nonatomic,copy)NSString *picurl; //配图URL
@property(nonatomic,copy)NSString *readnum_newest; //阅读人数
@property(nonatomic,copy)NSString *likenum_newest; //喜欢人数
@property(nonatomic,copy)NSString *nickname; //文章发布平台名称
@property(nonatomic,copy)NSString *alias;
@property(nonatomic,copy)NSString *posttime;
@property(nonatomic,copy)NSString *sn;

- (instancetype)initWithDic:(NSDictionary *)dic;
+ (instancetype)newsWithDic:(NSDictionary *)dic;

//发送异步请求获取数据
+ (void)requestNewsDataWithPage:(int)page AndSuccess:(void(^)(NSArray *arrayDic))success AndError:(void(^)(NSString *errorStr))error;

@end

NS_ASSUME_NONNULL_END
